package com.work.music.entity;

public class WordCollectInfo extends BaseEntity {
    private Long id;

    private String word;

    private String returnphrase;

    private String query;

    private String translation;

    private String errorcode;

    private String l;

    private String tspeakurl;

    private String web;

    private String dict;

    private String webdict;

    private String basic;

    private String speakurl;

    private int isCollect;

    public WordCollectInfo(WordInfo wordInfo, int isCollect) {
        this.id = wordInfo.getId();
        this.word = wordInfo.getWord();
        this.returnphrase = wordInfo.getReturnphrase();
        this.query = wordInfo.getQuery();
        this.translation = wordInfo.getTranslation();
        this.errorcode = wordInfo.getErrorcode();
        this.l = wordInfo.getL();
        this.tspeakurl = wordInfo.getTspeakurl();
        this.web = wordInfo.getWeb();
        this.dict = wordInfo.getDict();
        this.webdict = wordInfo.getWebdict();
        this.basic = wordInfo.getBasic();
        this.speakurl = wordInfo.getSpeakurl();
        this.isCollect = isCollect;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public String getReturnphrase() {
        return returnphrase;
    }

    public void setReturnphrase(String returnphrase) {
        this.returnphrase = returnphrase;
    }

    public String getQuery() {
        return query;
    }

    public void setQuery(String query) {
        this.query = query;
    }

    public String getTranslation() {
        return translation;
    }

    public void setTranslation(String translation) {
        this.translation = translation;
    }

    public String getErrorcode() {
        return errorcode;
    }

    public void setErrorcode(String errorcode) {
        this.errorcode = errorcode;
    }

    public String getL() {
        return l;
    }

    public void setL(String l) {
        this.l = l;
    }

    public String getTspeakurl() {
        return tspeakurl;
    }

    public void setTspeakurl(String tspeakurl) {
        this.tspeakurl = tspeakurl;
    }

    public String getWeb() {
        return web;
    }

    public void setWeb(String web) {
        this.web = web;
    }

    public String getDict() {
        return dict;
    }

    public void setDict(String dict) {
        this.dict = dict;
    }

    public String getWebdict() {
        return webdict;
    }

    public void setWebdict(String webdict) {
        this.webdict = webdict;
    }

    public String getBasic() {
        return basic;
    }

    public void setBasic(String basic) {
        this.basic = basic;
    }

    public String getSpeakurl() {
        return speakurl;
    }

    public void setSpeakurl(String speakurl) {
        this.speakurl = speakurl;
    }

    public int getIsCollect() {
        return isCollect;
    }

    public void setIsCollect(int isCollect) {
        this.isCollect = isCollect;
    }

    @Override
    public String toString() {
        return "WordCollectInfo{" +
                "id=" + id +
                ", word='" + word + '\'' +
                ", returnphrase='" + returnphrase + '\'' +
                ", query='" + query + '\'' +
                ", translation='" + translation + '\'' +
                ", errorcode='" + errorcode + '\'' +
                ", l='" + l + '\'' +
                ", tspeakurl='" + tspeakurl + '\'' +
                ", web='" + web + '\'' +
                ", dict='" + dict + '\'' +
                ", webdict='" + webdict + '\'' +
                ", basic='" + basic + '\'' +
                ", speakurl='" + speakurl + '\'' +
                ", isCollect=" + isCollect +
                '}';
    }
}